import { commonParams } from '@/api/common-query.js'
import { service } from '@/api/service.js'
/**
 * jsonp 抓取歌手页数据
 * 接口：/artist/list?type=1&area=96&initial=b  type-1:全部1:男歌手2:女歌手3:乐队/top/artists
 */
export function getSingerList() {
  let data = Object.assign({}, commonParams, {
    // type: -1,
    // area: -1,
    limit: 100,
    offset: 0
  })
  // 对象合并
  return service({
    method: 'GET',
    url: '/top/artists',
    params: data
  })
}
/**
 * jsonp 抓取歌手详情页数据
 * 接口：/artists
 */
export function getSingerDetail(singermid) {
  let data = Object.assign({}, commonParams, {
    id: singermid
  })
  // 对象合并
  return service({
    method: 'GET',
    url: '/artists',
    params: data
  })
}
